<?php

class Bus_Form_Stop extends Zend_Form
{
    public function  __construct($options = null)
    {
        parent::__construct($options);

        $this->setAction(BASE_URL . '/bus/stop/save');
        $this->setAttrib('id', 'form_stop');

        $this->addElement(new Zend_Form_Element_Hidden('bus_stop_pid'));

        $this->addElement(new Zend_Form_Element_Text('stop_name', array(
            'label' => 'Stop name',
            'required' => true
        )));

        $this->addElement(new Zend_Form_Element_Text('coord_lat', array(
            'label' => 'Coord lat',
            'required' => true
        )));
        $this->addElement(new Zend_Form_Element_Text('coord_lng', array(
            'label' => 'Coord lng',
            'required' => true
        )));

        $this->addElement(new Zend_Form_Element_Submit('stop_submit', array(
            'label' => 'Save'
        )));
        $this->addElement(new Zend_Form_Element_Button('stop_cancel', array(
            'label' => 'Cancel'
        )));
    }
}